<?php
require_once dirname(__FILE__)."/../model/user.php";
require_once dirname(__FILE__)."/../model/api.php";
if(!isUser()){
    $url =$this->createMobileUrl('login');
    header("location: $url");
    setJumpUrl();
    die();
}
$user = getUser();
$request = postCurl(getServer()."/getPerformanceByid",array("id"=>$user["id"]));
if($request["ret"]!=0){
    message("服务器错误！");
    die();
}
$data  = $request["data"];

$userInfo = getUserInfo();
include $this->template('evaluation');